package com.lei2j.iterator;

import org.junit.Test;

public class TestIterator {

	@Test
	public void test() {
		MyList<String> myList = new MyList<>(3);
		myList.add("aaa");
		myList.add("bbb");
		myList.add("ccc");
		Iterator<String> iterator = myList.iterator();
		while(iterator.hasNext()) {
			System.out.println(iterator.next());
		}
	}
	
}
